package com.xyh.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xyh.dao.StudentDao;
import com.xyh.po.Student;
import com.xyh.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author:kyle
 * @Date:2020/12/23 - 11:43
 * @Project:spring_StudentsDormitoryManagementSystem
 * @Package:com.xyh.service.impl
 * @Version:1.0
 */
@Service("studentService")
public class StudentServiceImpl extends ServiceImpl<StudentDao, Student> implements StudentService {

    @Autowired
    private StudentDao studentDao;

    @Override
    public List<Student> queryStudentByWrapper(Wrapper<Student> wrapper) {

        List<Student> students = studentDao.queryStudentByWrapper(wrapper);
        return students;
    }
}
